package org.dreamwork.jasmine2.web.controls;

import org.dreamwork.jasmine2.template.ITemplate;
import org.dreamwork.jasmine2.template.ITemplateControl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 11-9-1
 * Time: 下午12:07
 */
public class RepeaterTemplate implements ITemplate {
    private static final Logger logger = LoggerFactory.getLogger (RepeaterTemplate.class);

    private String content;
    public void setRootElement (Element root) {
    }

    public void setContent (String content) {
        this.content = content;
    }

    public String getContent () {
        return content;
    }

    public void instantiateIn (ITemplateControl container) {
        container.setTemplate (this);
    }

    public NodeList selectNodes (String xpath) {
        return null;
    }

    public Node selectSingleNode (String xpath) {
        return null;
    }

    void init () {
        if (logger.isDebugEnabled ()) logger.debug (content);
    }
}
